package com.woniu.product.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 订单业务类型
 * @TableName t_order_service
 */
@TableName(value ="t_order_service")
public class TOrderService implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 业务名字
     */
    private String serviceName;

    /**
     * 类型编码
     */
    private String typeCode;

    /**
     * 订单来源id
     */
    private Integer orderSourceId;

    /**
     * 订单来源名字
     */
    private String orderSourceName;

    /**
     * 订单类型id
     */
    private Integer orderTypeId;

    /**
     * 订单类型名字
     */
    private String orderTypeName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 业务名字
     */
    public String getServiceName() {
        return serviceName;
    }

    /**
     * 业务名字
     */
    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    /**
     * 类型编码
     */
    public String getTypeCode() {
        return typeCode;
    }

    /**
     * 类型编码
     */
    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    /**
     * 订单来源id
     */
    public Integer getOrderSourceId() {
        return orderSourceId;
    }

    /**
     * 订单来源id
     */
    public void setOrderSourceId(Integer orderSourceId) {
        this.orderSourceId = orderSourceId;
    }

    /**
     * 订单来源名字
     */
    public String getOrderSourceName() {
        return orderSourceName;
    }

    /**
     * 订单来源名字
     */
    public void setOrderSourceName(String orderSourceName) {
        this.orderSourceName = orderSourceName;
    }

    /**
     * 订单类型id
     */
    public Integer getOrderTypeId() {
        return orderTypeId;
    }

    /**
     * 订单类型id
     */
    public void setOrderTypeId(Integer orderTypeId) {
        this.orderTypeId = orderTypeId;
    }

    /**
     * 订单类型名字
     */
    public String getOrderTypeName() {
        return orderTypeName;
    }

    /**
     * 订单类型名字
     */
    public void setOrderTypeName(String orderTypeName) {
        this.orderTypeName = orderTypeName;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TOrderService other = (TOrderService) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getServiceName() == null ? other.getServiceName() == null : this.getServiceName().equals(other.getServiceName()))
            && (this.getTypeCode() == null ? other.getTypeCode() == null : this.getTypeCode().equals(other.getTypeCode()))
            && (this.getOrderSourceId() == null ? other.getOrderSourceId() == null : this.getOrderSourceId().equals(other.getOrderSourceId()))
            && (this.getOrderSourceName() == null ? other.getOrderSourceName() == null : this.getOrderSourceName().equals(other.getOrderSourceName()))
            && (this.getOrderTypeId() == null ? other.getOrderTypeId() == null : this.getOrderTypeId().equals(other.getOrderTypeId()))
            && (this.getOrderTypeName() == null ? other.getOrderTypeName() == null : this.getOrderTypeName().equals(other.getOrderTypeName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getServiceName() == null) ? 0 : getServiceName().hashCode());
        result = prime * result + ((getTypeCode() == null) ? 0 : getTypeCode().hashCode());
        result = prime * result + ((getOrderSourceId() == null) ? 0 : getOrderSourceId().hashCode());
        result = prime * result + ((getOrderSourceName() == null) ? 0 : getOrderSourceName().hashCode());
        result = prime * result + ((getOrderTypeId() == null) ? 0 : getOrderTypeId().hashCode());
        result = prime * result + ((getOrderTypeName() == null) ? 0 : getOrderTypeName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", serviceName=").append(serviceName);
        sb.append(", typeCode=").append(typeCode);
        sb.append(", orderSourceId=").append(orderSourceId);
        sb.append(", orderSourceName=").append(orderSourceName);
        sb.append(", orderTypeId=").append(orderTypeId);
        sb.append(", orderTypeName=").append(orderTypeName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }


}